home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-08-17 | 2.0 KB | 74 lines | [TEXT/MPS ] |
- ;
- ; File: Notification.a
- ;
- ; Contains: Notification Manager interfaces
- ;
- ; Version: Technology: System 7.5
- ; Release: Universal Interfaces 3.2
- ;
- ; Copyright: © 1989-1998 by Apple Computer, Inc., all rights reserved
- ;
- ; Bugs?: For bug reports, consult the following page on
- ; the World Wide Web:
- ;
- ; http://developer.apple.com/bugreporter/
- ;
- ;
- IF &TYPE('__NOTIFICATION__') = 'UNDEFINED' THEN
- __NOTIFICATION__ SET 1
-
- IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
- include 'MacTypes.a'
- ENDIF
- IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
- include 'OSUtils.a'
- ENDIF
-
-
-
- ; typedef NMRec * NMRecPtr
-
- NMRec RECORD 0
- qLink ds.l 1 ; offset: $0 (0) ; next queue entry
- qType ds.w 1 ; offset: $4 (4) ; queue type -- ORD(nmType) = 8
- nmFlags ds.w 1 ; offset: $6 (6) ; reserved
- nmPrivate ds.l 1 ; offset: $8 (8) ; reserved
- nmReserved ds.w 1 ; offset: $C (12) ; reserved
- nmMark ds.w 1 ; offset: $E (14) ; item to mark in Apple menu
- nmIcon ds.l 1 ; offset: $10 (16) ; handle to small icon
- nmSound ds.l 1 ; offset: $14 (20) ; handle to sound record
- nmStr ds.l 1 ; offset: $18 (24) ; string to appear in alert
- nmResp ds.l 1 ; offset: $1C (28) ; pointer to response routine
- nmRefCon ds.l 1 ; offset: $20 (32) ; for application use
- sizeof EQU * ; size: $24 (36)
- ENDR
- ;
- ; pascal OSErr NMInstall(NMRecPtr nmReqPtr)
- ;
- IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
- ; parameters:
- ; nmReqPtr => A0
- ; returns:
- ; OSErr <= D0
- _NMInstall: OPWORD $A05E
- ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
- IMPORT_CFM_FUNCTION NMInstall
- ENDIF
-
- ;
- ; pascal OSErr NMRemove(NMRecPtr nmReqPtr)
- ;
- IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
- ; parameters:
- ; nmReqPtr => A0
- ; returns:
- ; OSErr <= D0
- _NMRemove: OPWORD $A05F
- ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
- IMPORT_CFM_FUNCTION NMRemove
- ENDIF
-
-
- ENDIF ; __NOTIFICATION__
-
-